import request from "./index";

// 请求中：请求参数和返回值的类型都需要进行约束

// 验证码请求
export const CaptchaAPI = (): Promise<CaptchaAPIRes> =>
  request.get("/prod-api/captchaImage");

// 登录请求
export const LoginAPI = (params): Promise<LoginAPIReq> =>
  request.post("/prod-api/login", params);
